import Vue from 'vue'
import Router from 'vue-router'
import tabbar from '@/components/tabbar'
Vue.use(Router)

export default new Router({
    // 加密路由，直接访问路径，除了入口文件其他路由文件，访问不到
    // mode: 'history',
    // base: process.env.BASE_URL,
    routes: [
        
    
        {
            path: '/',
            name: 'user',
            components: {
                default:() =>
                import('@/views/user.vue'),
                tabbar: tabbar
            }
        },
        {
            path: '/friend',
            name: 'friend',
            components: {
                default:() =>
                import('@/views/friend.vue'),
                tabbar: tabbar
            }
        },
        {
            path: '/koubei',
            name: 'koubei',
            components: {
                default:() =>
                import('@/views/friend.vue'),
                tabbar: tabbar
            }
        },
        {
            path: '/money',
            name: 'money',
            components: {
                default:() =>
                import('@/views/friend.vue'),
                tabbar: tabbar
            }
        },
        {
            path: '/home',
            name: 'home',
            components: {
                default:() =>
                import('@/views/friend.vue'),
                tabbar: tabbar
            }
        },
        {
            path: '/balance',
            name: 'balance',
            components: {
                default:() =>
                import('@/views/user/balance.vue'),
                
            }
        },
        {
            path: '/bank',
            name: 'bank',
            components: {
                default:() =>
                import('@/views/user/bank.vue'),
                
            }
        },
        {
            path: '/points',
            name: 'points',
            components: {
                default:() =>
                import('@/views/user/points.vue'),
            }
        },
        {
            path: '/flower',
            name: 'flower',
            components: {
                default:() =>
                import('@/views/user/flower.vue'),
                
            }
        },
        {
            path: '/chat',
            name: 'chat',
            components: {
                default:() =>
                import('@/views/user/chat.vue'),
                
            }
        },
        {
            path: '/mycenter',
            name: 'mycenter',
            components: {
                default:() =>
                import('@/views/user/mycenter.vue'),
                
            }
        },
        {
            path: '/myinfo',
            name: 'myinfo',
            components: {
                default:() =>
                import('@/views/user/myinfo.vue'),
                
            }
        },
        {
            path: '/recharge',
            name: 'recharge',
            components: {
                default:() =>
                import('@/views/user/recharge.vue'),
                
            }
        },
        {
            path: '/cash',
            name: 'cash',
            components: {
                default:() =>
                import('@/views/user/cash.vue'),
                
            }
        },
        {
            path: '/addbank',
            name: 'addbank',
            components: {
                default:() =>
                import('@/views/user/addbank.vue'),
                
            }
        },
        {
            path: '/chatset',
            name: 'chatset',
            components: {
                default:() =>
                import('@/views/user/chatset.vue'),          
            }
        },
        {
            path: '/nickname',
            name: 'nickname',
            components: {
                default:() =>
                import('@/views/user/nickname.vue'),       
            }
        },
        {
        path: '/result',
        name: 'result',
        components: {
            default:() =>
            import('@/views/user/result.vue'),        
        }
    },
    {
        path: '/account',
        name: 'account',
        components: {
            default:() =>
            import('@/views/user/account.vue'),        
        }
    },
    {
        path: '/set',
        name: 'set',
        components: {
            default:() =>
            import('@/views/user/set.vue'),        
        }
    },
    {
        path: '/vip',
        name: 'vip',
        components: {
            default:() =>
            import('@/views/user/vip.vue'),        
        }
    },
        
        
    ]
})